package com.senney.java.ssm.controller;

import com.senney.java.ssm.bean.Employee;
import com.senney.java.ssm.service.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/employee")
public class EmployeeController {

    @Autowired
    private IEmployeeService employeeService;

    @RequestMapping("/getAllEmp")
    public List<Employee> getAllEmp() {
        return employeeService.getAllEmp();
    }
}
